namespace Digitalmes.Application.Mes;

/// <summary>
/// 工艺路线表
/// </summary>
public sealed class ProcRoutingDto : Dto
{
    /// <summary>
    /// 所属产线Id
    /// </summary>
    public long LineId { get; set; }

    /// <summary>
    /// 所属产线编号
    /// </summary>
    public string? LineCode { get; set; }

    /// <summary>
    /// 工艺路线编号
    /// </summary>
    [Required, NotNull]
    [StringLength(32)]
    public string? RoutingCode { get; set; }

    /// <summary>
    /// 工艺路线名称
    /// </summary>
    [Required, NotNull]
    [StringLength(32)]
    public string? RoutingName { get; set; }

    /// <summary>
    /// 工艺路线明细项
    /// </summary>
    [NotNull]
    public List<ProcRoutingItemDto>? RoutingItems { get; set; }

    /// <summary>
    /// 创建时间
    /// </summary>
    public DateTime CreateTime { get; set; }

    /// <summary>
    /// 创建人
    /// </summary>
    public string? CreateUser { get; set; }

    /// <summary>
    /// 修改时间
    /// </summary>
    public DateTime? UpdateTime { get; set; }

    /// <summary>
    /// 修改人
    /// </summary>
    public string? UpdateUser { get; set; }
}
